package com.app.mapper.supermarket;

import com.app.model.supermarket.OddJobPicListModel;
import com.app.model.supermarket.OddJobReleaseModel;
import com.app.vo.supermarket.OddJobReleaseVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
@Mapper
public interface OddJobReleaseMapper extends BaseMapper<OddJobReleaseVo> {

      int insert(OddJobReleaseModel model);

      void update(OddJobReleaseModel model);

      void delete(int id);

      List<OddJobReleaseModel> getOddJobReleaseListByModel(OddJobReleaseModel model);

      List<OddJobReleaseVo> getOddJobReleaseListByState(OddJobReleaseVo model);
      OddJobReleaseModel getOddJobReleaseById(int id);

      /**
       * 根据id获取零工地址+
       * @param id
       * @return
       */
      String getAddressById(Integer id);

      int countMid(int mid);//我发的活的数量

      int selectNumber(int id);//查询活要几个人


      OddJobReleaseModel  getOddById(int id,int mid);

}
